package main

import (
	"errors"
	"fmt"
	"log"
	"time"
)

var ERR_EOF = errors.New("EOF")
var ERR_CLOSED_PIPE = errors.New("io: read/write on closed pipe")
var ERR_NO_PROGRESS = errors.New("multiple Read calls return no data or error")
var ERR_SHORT_BUFFER = errors.New("short buffer")
var ERR_SHORT_WRITE = errors.New("short write")
var ERR_UNEXPECTED_EOF = errors.New("unexpected EOF")

func main() {
	fmt.Println("程序开始运行。。。")
	log.Println("程序开始运行。。。")

	var FirstName, SecondNames string
	fmt.Printf("Please enter your full name: ")
	fmt.Scanln(&FirstName, &SecondNames) //Scanln 扫描来自标准输入的文本，将空格分隔的值依次存放到后续的参数内，直到碰到换行。
	// fmt.Scanf("%s %s", &firstName, &lastName)    //Scanf与其类似，除了 Scanf 的第一个参数用作格式字符串，用来决定如何读取。
	fmt.Printf("Hi %s %s!\n", FirstName, SecondNames)
	var i = 3
	go func(a int) {
		fmt.Println(a)
		fmt.Println("1")
	}(i)
	fmt.Println("2")
	time.Sleep(1 * time.Second)
}
